package com.xiaol.springbootredis.common.wrapper.page;

import lombok.Data;

/**
 * User: chenshun131 <p />
 * Time: 18/6/15 12:23  <p />
 * Version: V1.0  <p />
 * Description: The class Page util <p />
 */
@Data
public class PageUtil {

    /** The cur page.当前页 */
    private int currentPage = 1;

    /** The next page.下一页 */
    private int nextPage;

    /** The pre page. 上一页 */
    private int prePage;

    /** The total row. 总条数 */
    private int totalRow;

    /** The page size.每页条数 */
    private int pageSize = 10;

    /** The total page.总页数 */
    private int totalPage;

    /** The start. 开始条数 */
    private int start;

    /** The buttons */
    private int[] buttons;

    /** 当前页条数 */
    private int curPageSize;

    /**
     * Instantiates a new page util
     */
    public PageUtil() {
    }

    /**
     * Instantiates a new page util
     *
     * @param currentPage
     *         the current page
     */
    public PageUtil(int currentPage) {
        this.currentPage = currentPage;
    }

    /**
     * Instantiates a new page util
     *
     * @param currentPage
     *         the current page
     * @param pageSize
     *         the page size
     */
    public PageUtil(int currentPage, int pageSize) {
        this.currentPage = currentPage;
        this.pageSize = pageSize;
    }

}
